Package netscape.net
Class TransferProtocolClient
java.lang.Object
netscape.net.NetworkClient
netscape.net.TransferProtocolClient
- Direct Known Subclasses:
SmtpClient
This class implements that basic intefaces of transfer protocols.
It is used by subclasses implementing specific protocols.
- Version:
- 1.25, 08/07/97
- Author:
- Jonathan Payne
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
code for last replyArray of strings (usually 1 entry) for the last reply from the server.Fields inherited from class netscape.net.NetworkClient
serverInput, serverOutput, serverSocket
-
Constructor Summary
ConstructorsConstructorDescriptioncreates an uninitialized instance of this class.TransferProtocolClient
(String host, int port) standard constructor to host host, port port. -
Method Summary
Modifier and TypeMethodDescriptionconverts the server response into a string.Returns all server response strings.int
Pulls the response from the server and returns the code as a number.void
sendServer
(String cmd) Sends command cmd to the server.Methods inherited from class netscape.net.NetworkClient
closeServer, doConnect, openServer, serverIsOpen
-
Field Details
-
serverResponse
Array of strings (usually 1 entry) for the last reply from the server. -
lastReplyCode
protected int lastReplyCodecode for last reply
-
-
Constructor Details
-
TransferProtocolClient
standard constructor to host host, port port.- Throws:
IOException
-
TransferProtocolClient
public TransferProtocolClient()creates an uninitialized instance of this class.
-
-
Method Details
-
readServerResponse
Pulls the response from the server and returns the code as a number. Returns -1 on failure.- Throws:
IOException
-
sendServer
Sends command cmd to the server. -
getResponseString
converts the server response into a string. -
getResponseStrings
Returns all server response strings.
-